import Vue from 'vue'
import VueRouter from 'vue-router'
import UserComponent from "@/components/UserComponent.vue";
import OrderComponent from "@/components/OrderComponent.vue";
import LoginComponent from "@/components/LoginComponent.vue";

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'login',
    component: LoginComponent
  },
  {
    path: '/user',
    name: 'user',
    component: UserComponent
  },
  {
    path: '/order',
    name: 'order',
    component: OrderComponent
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
